<%@ page language="java"
	import="it.polimi.swim.entity.SystemUser, it.polimi.swim.entity.*,java.util.List"
	contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Welcome to swimv2</title>
</head>
<body>


	<%
//Esiste una sessione aperta
if(session.getAttribute("mail")!=null){
	
	List<Skill> skillList= (List<Skill>)request.getAttribute("skillList");
	
	out.println("<form method='post' action='HelpRequestServlet'>"); 
	out.println("<select name='skill1'>");

	for(Skill s:skillList ){
		out.println("<option value="+s.getId()+">"+s.getName()+"</option>");
			
	}

	out.println("</select><br>");
	out.println("<br><br><input type='submit'>");
	
	out.println("</form>");
	
	
}
else{
	out.println("<a href='index.jsp'>Log in</a>");
}
%>



</body>
</html>